package com.easydisk.file.model.req;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class FileChunkCheckReq {


    @NotBlank(message = "文件名称不能为空")
    private String filename;

    @NotBlank(message = "文件对应的唯一标识不能为空")
    private String identifier;

    @NotNull(message = "总分片数不能为空")
    private Integer totalChunks;

    @NotNull(message = "分片下标不能为空")
    private Integer chunkNumber;

    @NotNull(message = "当前分片大小不能为空")
    private Long currentChunkSize;

    @NotNull(message = "文件大小不能为空")
    private Long totalSize;

}
